<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<s:if test="newsList!=null">
<table id="newsTable">
<s:iterator id="id" status="st" value="%{newsList}">
		<tr>
		<td class="newsTable_3">
		<a target="_blank" href=zcg/showNewsContent.action?newsId=${id.newsId}><img src="img/main1.gif" id="mainImg"/></a>
		</td>
		
			<s:if test="%{#id.newsTitle.length()>12}">
				<td class="newsTable_1">
					<a target="_blank" href=zcg/showNewsContent.action?newsId=${id.newsId}><s:property value="%{#id.newsTitle.substring(0,12)}" /></a>
					…
				</td>
			</s:if>
			<s:else>
				<td >
					<a target="_blank" href=zcg/showNewsContent.action?newsId=${id.newsId}><s:property value="%{#id.newsTitle}" /></a>
				</td>
			</s:else>
			<td class="newsTable_2">
				${id.newsDate}
			</td>
		</tr>
</s:iterator>
</table>
</s:if>
<s:else>暂无新闻</s:else>
